 
<div class="jobDetails index">
	<div class="header-banner">
        <h1>
            <?php __('Job Details');?>
            <div class="add-new-item">
            <?php echo $this->Html->link($this->Html->image('assets/icons/dashboard/95.png', array('alt' => 'Edit')),
                                            '/admin/'.$this->params['controller']. '/' .'add',  
                                            array('escape' => false, 'class'=>'tooltip table_icon', 'title' => __('Add New Job Detail',true)));
            ?>
            </div>
        </h1>
    <p><?php __('Edit, View and Delete the job.'); ?></p>
	</div>
	<table class="normal">
	<thead>
		<tr>
			<th><?php __('Job Number');?></th>
			<th><?php __('address');?></th>
			<th><?php __('Salary');?></th>
			<th><?php __('Leisure');?></th>
			<th><?php __('Qualification');?></th>
			<th><?php __('Hours');?></th>
			<th><?php __('Period');?></th>
			<th><?php __('End Date');?></th>
			<th><?php __('job_provider_id');?></th>
			<th><?php __('Application'); ?></th>
			<th class="actions"><?php __('Actions');?></th>
		</tr>
	</thead>
	<tbody>
	<?php
	$i = 0;
	foreach ($jobDetails as $jobDetail):
		$class = null;
		if ($i++ % 2 != 0) {
			$class = ' class="odd"';
		}
	?>
	<tr <?php echo $class;?>>
		<td><?php echo $jobDetail['JobDetail']['jobno']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['JobDetail']['address']; ?></td>
		<td><?php echo $jobDetail['JobDetail']['salary']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['JobDetail']['leisure']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['JobDetail']['qualification']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['JobDetail']['hours']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['JobDetail']['period']; ?>&nbsp;</td>
		<td><?php echo $jobDetail['JobDetail']['end_date']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($jobDetail['JobProvider']['name'], array('controller' => 'job_providers', $jobDetail['JobProvider']['id'])); ?>
		</td>
		<td><?php echo $this->Html->link('View ('.count($jobDetail['Staff']).')', array('action' => 'admin_staff_view',$jobDetail['JobDetail']['id'])); ?></td>
		<td class="actions">
			<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Pencil.png', array('alt' => 'Edit')),
											'/admin/'.$this->params['controller']. '/' .'add'.'/'.$jobDetail['JobDetail']['id'],  
											array('escape' => false, 'class'=>'tooltip table_icon'));
			?>
			<?php echo $this->Html->link($this->Html->image('assets/icons/actions_small/Trash.png', array('alt' => 'Delete')),
											'/admin/'.$this->params['controller']. '/' .'delete'.'/'.$jobDetail['JobDetail']['id'],  
											array('rel' => 'delete', 'escape' => false, 'class'=>'tooltip table_icon'));
			?>
		</td>
	</tr>
<?php endforeach; ?>
</tbody>
	</table>
	<p>
	<?php
	//echo $this->Paginator->counter(array('format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>


